package com.jdls.service;

import com.jdls.pojo.Book;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 嘉德罗斯
 * @date 2021/9/15
 */
@Transactional
public interface BookService {

    public Integer add(Book book);

    public Integer update(Book book);

    public Integer delete(int id);

    public List<Book> findAll();

    public Book findById(int id);
}
